# # 基础镜像 
FROM python:3.12

# 设置工作目录 
WORKDIR /app 

# 安装依赖
COPY . .
COPY requirements.txt  .
RUN pip install --no-cache-dir -r requirements.txt
RUN apt update && apt install -y libgl1

# 暴露端口
EXPOSE 8000 

# 启动命令 
CMD ["uvicorn","app:app","--host","0.0.0.0","--port","8000"]